package cn.kent.base.falseSharing;

public class TestForContent2 {
    static final int LINE = 1024;
    static final int COLUMN = 1024;

    public static void main(String[] args) {
        long[][] array = new long[LINE][COLUMN];
        long startTime = System.currentTimeMillis();
        for (int i = 0; i < COLUMN; i++) {
            for (int j = 0; j < LINE; j++) {
                array[j][i] = i * 2 + j;
            }
        }
        long endtime = System.currentTimeMillis();
        long cacheTime = endtime - startTime;
        System.out.println("no cache time:"+cacheTime);
    }
}
